module.exports = {
    pluginOptions: {
        electronBuilder: {
            preload: 'src/preload.js',
            builderOptions: {
                "appId": "com.plugin.app",
                "productName": "plugin",//项目名，也是生成的安装文件名，即aDemo.exe
                "copyright": "Copyright © 2023",//版权信息
                "directories": {
                    "output": "./dist_electron"//输出文件路径，之前编译的默认是dist_electron
                },
                "win": {
                    "icon": "ico/icon.png",//这里注意配好图标路径,打包后的ico文件夹放在根目录下
                    "requestedExecutionLevel": "requireAdministrator" // 将 UAC 设置放在 win 属性下的 requestedExecutionLevel 字段中
                },
                extraResources: [
                    {
                        from: 'resources/dmServer', // 指定要拷贝的文件路径,会将该路径下的所有文件拷贝到目标资源文件夹中
                        to: './dmServer', // 拷贝到构建目录的根目录/resources下
                    }
                    ]
                // options placed here will be merged with default configuration and passed to electron-builder
            }
        }
    }
}